package com.itheima.demo001;

public class exercise34 {
    public static void main(String[] args) {
        //默认情况是，int类型
        //第一种方法
        compare((byte) 10,(byte) 20);
        //第二种方法
        byte b1 = 10;
        byte b2 = 20;
        compare(b1,b2);
    }

    public static void compare(byte b1,byte b2){
        System.out.println(b1 == b2);
    }

    public static void compare(short s1,short s2){
        System.out.println(s1 == s2);
    }

    public static void compare(int i1,int i2){
        System.out.println(i1 == i2);
    }

    public static void compare(long n1,long n2){
        System.out.println(n1 == n2);
    }

}
